package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 视频
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_video")
public class Video extends Model<Video> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */

	@TableId("id")
	private Long id;
    /**
     * 外键spd_content_video_category.id
     */

	@TableField("video_category_id")
	private Long videoCategoryId;
    /**
     * 标题
     */

	@TableField("title")
	private String title;
    /**
     * 作者
     */

	@TableField("author")
	private String author;
    /**
     * 视频编号
     */

	@TableField("code")
	private String code;
    /**
     * 封面图片
     */
	
	@TableField("is_top")
	private Integer isTop;

	@TableField("cover_image")
	private String coverImage;
    /**
     * 视频URL
     */

	@TableField("url")
	private String url;
    /**
     * 视频长度，单位秒
     */

	@TableField("duration")
	private Integer duration;
	
	/**
	 * 视频来源，1腾讯，2爱奇艺，3优酷
	 */
	@TableField("source")
	private Integer source;
	
    /**
     * 发布状态，1表示发布，2表示不发布
     */

	@TableField("publish_status")
	private Integer publishStatus;
    /**
     * 创建时间
     */

	@TableField("operate_time")
	private Date operateTime;
    /**
     * 创建人id，外键spd_sys_user.id
     */

	@TableField("operate_id")
	private Long operateId;
	
	/**
	 * 视频描述
	 */
	@TableField("content")
	private String content;

	public Long getId() {
		return id;
	}

	public Video setId(Long id) {
		this.id = id;
		return this;
	}

	public Long getVideoCategoryId() {
		return videoCategoryId;
	}

	public Video setVideoCategoryId(Long videoCategoryId) {
		this.videoCategoryId = videoCategoryId;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public Video setTitle(String title) {
		this.title = title;
		return this;
	}

	public String getAuthor() {
		return author;
	}

	public Video setAuthor(String author) {
		this.author = author;
		return this;
	}

	public String getCode() {
		return code;
	}

	public Video setCode(String code) {
		this.code = code;
		return this;
	}

	public Integer getIsTop() {
		return isTop;
	}

	public void setIsTop(Integer isTop) {
		this.isTop = isTop;
	}

	public String getCoverImage() {
		return coverImage;
	}

	public Video setCoverImage(String coverImage) {
		this.coverImage = coverImage;
		return this;
	}

	public String getUrl() {
		return url;
	}

	public Video setUrl(String url) {
		this.url = url;
		return this;
	}

	public Integer getDuration() {
		return duration;
	}

	public Video setDuration(Integer duration) {
		this.duration = duration;
		return this;
	}

	public Integer getPublishStatus() {
		return publishStatus;
	}

	public Video setPublishStatus(Integer publishStatus) {
		this.publishStatus = publishStatus;
		return this;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public Video setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
		return this;
	}

	public Long getOperateId() {
		return operateId;
	}

	public Video setOperateId(Long operateId) {
		this.operateId = operateId;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}